package org.fullhappy.business;

import java.util.ArrayList;

import org.fullhappy.dao.ArticleDAO;
import org.fullhappy.entity.Article;

public class ArticleServise {
	private ArticleDAO articleDAO = new ArticleDAO();
	public ArrayList<Article> search(long from, long numberItem) {
		return (ArrayList<Article>) articleDAO.search(from, numberItem);
	}
	public void addArticle(Article article) {
		try {
			articleDAO.insert(article);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
	
}
